home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 4 / Apprentice-Release4.iso / Source Code / Libraries / C Internet Config / IC Libraries ƒ / 68k IC Library ƒ / IC Component API.h < prev    next >
Encoding:
Text File  |  1995-11-18  |  7.3 KB  |  89 lines  |  [TEXT/SPM ]

  1. /*
  2.     IC Component API.h
  3.     
  4.     Defines the call interface to the IC component.
  5.     
  6.     I (dhn) modified this to appear as a component interface file (IMHO) should
  7.     look like.
  8.     
  9.     I took out the XXXWORDINLINE code, replaced the numerical selector values
  10.     with their enumerated constant values, etc.
  11.     
  12.     By using the ComponentCallNow macro we ensure that the correct expansion
  13.     will take place when compiling 68k or PPC code.  For 68k code, the asm code
  14.     to call the component will expand in place and work correctly.  For PPC code,
  15.     the macro will expand to nothing leaving a prototype for the glue functions.
  16.     
  17.     By using the enumerated values in ICComponentSelectors.h, if the enums change
  18.     then the code will compile to the correct selector routine; it won't be necessary
  19.     to go into this file to change the selector codes.
  20.     
  21.     History:
  22.         11/03/95 - dhn - Modified and renamed to "IC Component API.h"
  23. */
  24.  
  25. /*
  26.     Original header information follows:
  27.     
  28.  * File:         ICCAPI.h
  29.  * Generated by: 1.0d4
  30.  * For:          IC 1.2
  31.  * On:         tConfigurationComponent inst,StringPtr key) \
  32.     ComponentCallNow(kICCEditPreferences,4);
  33.  
  34. /* ***** URL Handling ***** */
  35.  
  36. pascal ICError ICCParseURL(internetConfigurationComponent inst,StringPtr hint,Ptr data,long len,long* selStart,long* selEnd,Handle url) \
  37.     ComponentCallNow(kICCParseURL,24);
  38. pascal ICError ICCLaunchURL(internetConfigurationComponent inst,StringPtr hint,Ptr data,long len,long* selStart,long* selEnd) \
  39.     ComponentCallNow(kICCLaunchURL,20);
  40.  
  41. /*
  42.     ***** Mappings Routines *****
  43.     
  44.     Routines for interrogating mappings database.
  45.     
  46.     ----- High Level Routines -----
  47. */
  48.  
  49. pascal ICError ICCMapFilename(internetConfigurationComponent inst,StringPtr filename,ICMapEntry* entry) \
  50.     ComponentCallNow(kICCMapFilename,8);
  51. pascal ICError ICCMapTypeCreator(internetConfigurationComponent inst,OSType fType,OSType fCreator,StringPtr filename,ICMapEntry* entry) \
  52.     ComponentCallNow(kICCMapTypeCreator,16);
  53.  
  54. /* ----- Mid Level Routines ----- */
  55.  
  56. pascal ICError ICCMapEntriesFilename(internetConfigurationComponent inst,Handle entries,StringPtr filename,ICMapEntry* entry) \
  57.     ComponentCallNow(kICCMapEntriesFilename,12);
  58. pascal ICError ICCMapEntriesTypeCreator(internetConfigurationComponent inst,Handle entries,OSType fType,OSType fCreator,StringPtr filename,ICMapEntry* entry) \
  59.     ComponentCallNow(kICCMapEntriesTypeCreator,20);
  60.  
  61. /* ----- Low Level Routines ----- */
  62.  
  63. pascal ICError ICCCountMapEntries(internetConfigurationComponent inst,Handle entries,long* count) \
  64.     ComponentCallNow(kICCCountMapEntries,8);
  65. pascal ICError ICCGetIndMapEntry(internetConfigurationComponent inst,Handle entries,long ndx,long* pos,ICMapEntry* entry) \
  66.     ComponentCallNow(kICCGetIndMapEntry,16);
  67. pascal ICError ICCGetMapEntry(internetConfigurationComponent inst,Handle entries,long pos,ICMapEntry* entry) \
  68.     ComponentCallNow(kICCGetMapEntry,12);
  69. pascal ICError ICCSetMapEntry(internetConfigurationComponent inst,Handle entries,long pos,ICMapEntry* entry) \
  70.     ComponentCallNow(kICCSetMapEntry,12);
  71. pascal ICError ICCDeleteMapEntry(internetConfigurationComponent inst,Handle entries,long pos) \
  72.     ComponentCallNow(kICCDeleteMapEntry,8);
  73. pascal ICError ICCAddMapEntry(internetConfigurationComponent inst,Handle entries,ICMapEntry* entry) \
  74.     ComponentCallNow(kICCAddMapEntry,8);
  75.  
  76. #ifdef __cplusplus
  77. }
  78. #endif
  79.  
  80. #endif /* __H_IC_Component_API__ */
  81.  
  82.  
  83.  
  84.  
  85.  
  86.  
  87.  
  88.  
  89.